package com.ocom.common.enums;

import com.ocom.common.utils.CommonUtil;

public class PayWar {

    public static Integer getPayWar(String payWarName){
        if (CommonUtil.isNull(payWarName)) {
            return 0;
        }
        if (payWarName.equals("pay.weixin.micropay") || payWarName.equals("pay.weixin.scanning")
                || payWarName.equals("pay.weixin.preorder")){
            return 1;
        }else if (payWarName.equals("pay.alipay.micropay") || payWarName.equals("pay.alipay.preorder")){
            return 2;
        }else if (payWarName.equals("pay.icbc.micropay") || payWarName.equals("pay.icbc.withholding")){
            return 3;
        }else if (payWarName.equals("pay.unionpay.micropay")){
            return 4;
        }else if (payWarName.equals("pay.shouqianba.micropay")){
            return 6;
        }else if (payWarName.equals("pay.ccbb.micropay") || payWarName.equals("pay.ccbb.preorder") || payWarName.equals("pay.ccbb.withholding")){
            return 7;
        }else if (payWarName.equals("pay.kancloud.micropay")){
            return 8;
        }else if (payWarName.equals("pay.qingdaonongshang.micropay")){
            return 5;
        }else if (payWarName.equals("pay.leshua.micropay")){
            return 9;
        }else if (payWarName.equals("pay.chinaums.preorder")){
            return 10;
        }else if (payWarName.equals("pay.unionpayschool.micropay")){
            return 11;
        }else if (payWarName.equals("pay.fuhuiba.micropay")){
            return 12;
        }else if (payWarName.equals("pay.ksrcb.micropay")){
            return 13;
        }else if (payWarName.equals("pay.suixingpay.micropay") || payWarName.equals("pay.suixingpay.preorder")){
            return 14;
        }else if (payWarName.equals("pay.abc.micropay")){
            return 15;
        }else if (payWarName.equals("pay.postong.micropay")){
            return 18;
        }else if (payWarName.equals("pay.HuiYinTongPOS.micropay")){
            return 19;
        }else if (payWarName.equals("pay.bocom.micropay")){
            return 20;
        }else if (payWarName.equals("pay.SandHippo.micropay")){
            return 21;
        }else if (payWarName.equals("pay.lakala.micropay") || payWarName.equals("pay.lakala.preorder")){
            return 22;
        }else if (payWarName.equals("pay.psbc.micropay") || payWarName.equals("pay.psbc.preorder")){
            return 23;
        }else if (payWarName.equals("pay.saobei.micropay") || payWarName.equals("pay.saobei.preorder")){
            return 24;
        }else if (payWarName.equals("pay.haike.micropay") || payWarName.equals("pay.haike.preorder")){
            return 25;
        }else if (payWarName.equals("pay.fuyou.micropay") || payWarName.equals("pay.fuyou.preorder")){
            return 26;
        }else if (payWarName.equals("pay.longzhimeng.micropay") || payWarName.equals("pay.longzhimeng.preorder")){
            return 27;
        }else if (payWarName.equals("pay.alischool.withholding") ){
            return 28;
        }else if (payWarName.equals("pay.yinqi.micropay") ) {
            return 29;
        }else if (payWarName.equals("pay.cmbywt.preorder") ) {
            return 30;
        } else if (payWarName.equals("pay.quzhouyimafu.micropay") ) {
            return 31;
        }else if (payWarName.equals("pay.ccb.smartLife.micropay") ) {
            return 32;
        }else if (payWarName.equals("pay.yinsheng.micropay") ) {
            return 34;
        }else if (payWarName.equals("pay.lanzhoubank.preorder") ) {
            return 37;
        }else if (payWarName.equals("pay.citicbank.preorder") ) {
            return 33;
        }
        return 0;
    }
}

